home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
demo
/
gcp_24.exe
/
GCP_CLNT.HP_
/
GCP_CLNT.HP
Wrap
Text File
|
1994-03-16
|
5KB
|
188 lines
/********************************************************************
* *
* Source File: GCP_EVAL.hpp *
* Date: Fri Feb 28 14:56:07 1992 *
* *
********************************************************************/
_CLASSDEF (CGcpApp);
_CLASSDEF (CGcpWnd);
_CLASSDEF (TConnectUdpDlg);
_CLASSDEF (TConnectTcpDlg);
_CLASSDEF (TConnectTelnetDlg);
_CLASSDEF (TConnectTftpDlg);
_CLASSDEF (TBufferDlg);
_CLASSDEF (TFileDlg);
_CLASSDEF (CTelnetCommandsDlg);
class CGcpApp : public CWinApp
{
public:
CString ClassName;
CGcpApp();
~CGcpApp();
BOOL InitInstance();
};
// Declare TAboutDlg, a CDialog descendant
class CAboutDlg : public CDialog
{
public:
CAboutDlg(PCGcpWnd AParent, LPSTR AName);
~CAboutDlg() {};
afx_msg void OnLButtonDown (UINT, CPoint);
DECLARE_MESSAGE_MAP();
};
// Declare TConnectTelnetDlg, a CDialog descendant
class TConnectTelnetDlg : public CDialog
{
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
TConnectTelnetDlg(PCGcpWnd AParent, LPSTR AName);
~TConnectTelnetDlg() {};
void OnOK (void);
void OnCancel(void);
afx_msg void OnListen (void);
DECLARE_MESSAGE_MAP();
};
// Declare CTelnetCommandsDlg, a CDialog descendant
class CTelnetCommandsDlg : public CDialog
{
int Encode(const unsigned char far *, unsigned char far *, int, int);
int Decode(const unsigned char far *, unsigned char far *, int, int);
static int CommandsReceived;
public:
BOOL OnInitDialog(void);
GCP_TELNET_PARAMS Telnet;
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
CTelnetCommandsDlg(PCGcpWnd AParent, GCP_TELNET_PARAMS &Params);
CTelnetCommandsDlg(PCGcpWnd AParent);
~CTelnetCommandsDlg() {};
void OnOK (void);
};
// Declare TConnectTcpDlg, a CDialog descendant
class TConnectTcpDlg : public CDialog
{
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
TConnectTcpDlg(PCGcpWnd AParent, LPSTR AName);
~TConnectTcpDlg() {};
void OnOK (void);
void OnCancel(void);
afx_msg void OnListen (void);
DECLARE_MESSAGE_MAP();
};
// Declare TConnectTftpDlg, a CDialog descendant
class TConnectTftpDlg : public CDialog
{
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
TConnectTftpDlg(PCGcpWnd AParent, LPSTR AName);
~TConnectTftpDlg() {};
void OnOK (void);
void OnCancel(void);
afx_msg void OnListen (void);
DECLARE_MESSAGE_MAP();
};
// Declare TConnectUdpDlg, a CDialog descendant
class TConnectUdpDlg : public CDialog
{
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
void OnOK (void);
void OnCancel(void);
TConnectUdpDlg(PCGcpWnd AParent, LPSTR AName);
~TConnectUdpDlg() {};
};
// Declare TBufferDlg, a CDialog descendant
class TBufferDlg : public CDialog
{
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
TBufferDlg(PCGcpWnd AParent, LPSTR AName);
~TBufferDlg() {};
void OnOK(void);
void OnCancel(void);
afx_msg void BroadcastCheck(void);
afx_msg void AddressSelect(void);
DECLARE_MESSAGE_MAP();
};
// Declare TFileDlg, a CDialog descendant
class TFileDlg : public CDialog
{
afx_msg void OnGetFile(void);
afx_msg void OnPutFile(void);
DECLARE_MESSAGE_MAP();
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
TFileDlg(PCGcpWnd AParent, LPSTR AName);
~TFileDlg() {};
void OnCancel();
};
// Declare THostTableDlg, a CDialog descendant
class THostTableDlg : public CDialog
{
public:
PCGcpWnd GetParent(void) {return (PCGcpWnd)CDialog::GetParent();}
THostTableDlg(PCGcpWnd AParent, LPSTR AName);
~THostTableDlg() {};
BOOL OnInitDialog();
};
// Declare CGcpWnd, a TWindow descendant
class CGcpWnd : public CFrameWnd
{
// Modeless dialog boxes
//TPhoneDlg PhoneDlg;
PTFileDlg pFileDlg;
PTBufferDlg pBufferDlg;
PTConnectTcpDlg pConnectTcpDlg;
PTConnectTelnetDlg pConnectTelnetDlg;
PTConnectUdpDlg pConnectUdpDlg;
PTConnectTftpDlg pConnectTftpDlg;
// PCTelnetCommandsDlg pTelnetCmdDlg;
void TranslateMessage(char *theOutput,GCP_COMMAND MsgType);
void TranslateType(char *theOutput,GCP_SESSION_TYPE Type);
void ShowData(GCP_COMMAND, GCP_SESSION_TYPE);
void Append(LPSTR DisplayString);
void FormatError(GCP_ERROR,char *);
CEdit EditWnd;
afx_msg void OnSize(UINT, int, int);
afx_msg void OnClose (void);
afx_msg LONG SendCallback (WPARAM, LPARAM);
afx_msg LONG PostCallback (WPARAM, LPARAM);
afx_msg void OnShow(void);
afx_msg void OnHide (void);
afx_msg void OnTelnet (void);
afx_msg void OnTcp (void);
afx_msg void OnTftp (void);
afx_msg void OnUdp (void);
afx_msg void OnBuffer (void);
afx_msg void OnFile (void);
afx_msg void OnAgentClose (void);
afx_msg void OnAgentAbort (void);
afx_msg void OnHostTable (void);
afx_msg void OnLocalHost (void);
afx_msg void OnAbout (void);
afx_msg void OnIndex (void);
afx_msg void OnTelnetCmd (void);
DECLARE_MESSAGE_MAP();
public:
BOOL Closing;
GCP_STATUS Status; // Area for data
GCP_ERROR ShowData(GCP_ERROR ReturnValue, LPSTR DisplayString);
CGcpWnd();
~CGcpWnd();
};